public class PersonSimulator {
    public static void main(String[] args) {
        Person yp = new YellowPerson();
        yp.performdoing();
        yp.display();
        yp.setAction(new Swimming());
        yp.performdoing();
    }
}
